from rest_framework.views import APIView
from django.http import JsonResponse

class TestView(APIView):
    def get(self,request,name,age):

        print(self.kwargs)

        return JsonResponse(self.kwargs)